package com.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author mornd
 * @date 2020/12/1 - 14:56
 */
@Data
public class Order {
    private Integer id;
    private String ordersNo;
    private Integer accountId;
    private Integer roomTypeId;
    private Integer roomId;
    private String reservationName;//预订姓名
    private String idCard;//身份证号
    private String phone;//预订电话
    private Integer status;//1、待确认2、已确认3、已入住
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date reserveDate;
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date arriveDate;//入住时间
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date leaveDate;//离开时间
    private Double reservePrice;//房费价格
    private String remark;//remark

    private RoomType roomType;
    private Room room;

}
